package com.mantru.iotpot.dao;

import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.os.Environment;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.TextUtils;

import androidx.annotation.Nullable;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * 故障记录表
 * 作者： cmh
 * 日期： 2022/12/19
 */

public class t_error_record
{
    public String table_name = "t_error_record";
    public String timestamp = "0", error_code, error_type, error_desc, error_time;
    public String create_sql = "create table t_error_record(timestamp integer primary key, error_code text, error_type text, error_desc text, error_time text)";
    public String drop_sql = "drop table t_error_record";
    public String delete_sql = "delete from t_error_record ";
    public String list_sql = "select * from t_error_record ";

    public String[] GetDeleteValues()
    {
        String[] values = new String[0];
        return values;
    }

    public String[] GetListValues()
    {
        String[] values = new String[0];
        return values;
    }

    public ContentValues GetInsertContentValues()
    {
        ContentValues cv = new ContentValues();
        cv.put("timestamp", timestamp);
        cv.put("error_code", error_code);
        cv.put("error_type", error_type);
        cv.put("error_desc", error_desc);
        cv.put("error_time", error_time);
        return cv;
    }
}
